import request from '@/utils/request'

// 查询数据备份检测列表
export function listDetection(query) {
  return request({
    url: '/system/detection/list',
    method: 'get',
    params: query
  })
}

// 查询数据备份检测详细
export function getDetection(id) {
  return request({
    url: '/system/detection/' + id,
    method: 'get'
  })
}

// 新增数据备份检测
export function addDetection(data) {
  return request({
    url: '/system/detection',
    method: 'post',
    data: data
  })
}

// 修改数据备份检测
export function updateDetection(data) {
  return request({
    url: '/system/detection',
    method: 'put',
    data: data
  })
}

// 删除数据备份检测
export function delDetection(id) {
  return request({
    url: '/system/detection/' + id,
    method: 'delete'
  })
}
